package model;

import java.util.Observable;

public class function extends Observable {

	public int v1, v2, result;

	public void add() {
		result = v1 + v2;
		setChanged(); // Tell the display that the value has changed
	}

	public void sub() {
		result = v1 - v2;
		setChanged(); // Tell the display that the value has changed
	}

	public void mul() {
		result = v1 * v2;
		setChanged(); // Tell the display that the value has changed
	}

	public void div() {
		result = v1 / v2;
		setChanged(); // Tell the display that the value has changed
	}

}
